package com.practice.springboot_01_zwj.service;

import com.github.pagehelper.PageInfo;
import com.practice.springboot_01_zwj.entity.ProjectReport;
import com.practice.springboot_01_zwj.entity.ReportDetails;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface ReportDetailsService {
    /**
     * 根据keyId查询一级菜单
     */
    ProjectReport getProjectReportByKeyId(Integer keyId);

    /**
     * 根据keyId查询二级菜单列表
     */
    List<ReportDetails> getReportDetailsByKeyId(Integer keyId);

    /**
     * 根据rid查询单个二级菜单
     */
    ReportDetails getReportDetailById(Integer rid);

    /**
     * 新增二级菜单
     */
    int addReportDetail(ReportDetails reportDetails);

    /**
     * 更新二级菜单
     */
    int updateReportDetail(ReportDetails reportDetails);

    /**
     * 删除二级菜单
     */
    int deleteReportDetail(Integer rid);

    /**
     * 根据keyId删除所有二级菜单
     */
    int deleteReportDetailsByKeyId(Integer keyId);
}
